package com.ruoyi.common.utils;

import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * hutool bug 修复
 */
public class JsonEnumUtil {
    public static String toStr(Object o)  {
        try{
            return new ObjectMapper().writeValueAsString(o);
        }catch (Exception e){
            return "{}";
        }
    }
}
